<?php

require_once ("action/LoginAction.php");

$action = new LoginAction();
$action->execute();

require_once ("header.php");
?>
	<div id="titre">Administrateur du Site</div>
	<?php
if ($action->getResultMessage() != null)
{
?>
			<div id="msg"><?php echo $action->getResultMessage(); ?></div>
			<?php
}
?>

    
	<div id="login"> 
    	<div id="logo1"></div>
		<form action="login.php" method="post">
			<div id="labLogin"><input type="text" name="username" /></div>
			<div id="labMdP"><input type="password" name="password" /></div>
			<div id="btLogin"><input type="submit" 	value="Login" /></div>
		</form>
    </div>
<?php
include ("footer.php");
?>